Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 3 - Appendixes
Appendix B - Scriptable Text Editor Dictionary / Scriptable Text Editor Commands


Data Size

The standard Data Size command is defined on page 96. The Scriptable Text Editor version of the Data Size command behaves like the standard version. It returns the size of the data (a value) that would result from a Get command on an object or objects.

By default, the Scriptable Text Editor returns text objects as class Styled Text, including font and style information. The additional information adds a variable number of bytes to the data size. As a result, the size of a text object will be greater than the number of bytes contained in the corresponding text without the font and style information. To get the data size of a text object without font and style information, use the as className parameter to request the size of the data as text; for example,

data size of word 1 of front document as text

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996